<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_ae83c38d-4adc-4d67-8ea3-e7841b5e3ea3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-25</startDate>
            <endDate>2026-06-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_ae83c38d-4adc-4d67-8ea3-e7841b5e3ea3"
      id="F_5f035a5d-9113-4332-a90e-8383d707364a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_ae83c38d-4adc-4d67-8ea3-e7841b5e3ea3"
      id="F_d59bd6d3-000c-4104-9444-0f7c2168f89f">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_ae83c38d-4adc-4d67-8ea3-e7841b5e3ea3"
      id="F_8855999d-579f-499b-a9ee-6ccd36a51d8b">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ae83c38d-4adc-4d67-8ea3-e7841b5e3ea3"
      id="F_4878e0c6-37f6-4a52-a45a-50a99e49e981">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_ae83c38d-4adc-4d67-8ea3-e7841b5e3ea3"
      id="F_0a0631ac-abb4-4d4c-b93a-0ac3847920ed">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ae83c38d-4adc-4d67-8ea3-e7841b5e3ea3"
      id="F_7f73bf06-5eb6-4c4b-8c02-39e580e52eb3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_ae83c38d-4adc-4d67-8ea3-e7841b5e3ea3"
      id="F_8648f432-bea3-422d-b2d7-4b6c1593313d">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_ae83c38d-4adc-4d67-8ea3-e7841b5e3ea3"
      id="F_1d8917c2-4d0b-4f48-97dc-49bce839c037">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_ae83c38d-4adc-4d67-8ea3-e7841b5e3ea3"
      id="F_609fbb8f-e73f-4341-87f1-85e950383f3e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ae83c38d-4adc-4d67-8ea3-e7841b5e3ea3"
      id="F_3f899854-9248-425d-b850-9b8450e5f07a">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;3,852,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_ae83c38d-4adc-4d67-8ea3-e7841b5e3ea3"
      decimals="-3"
      id="F_9c70d768-2530-4009-8115-51dbf0437959"
      unitRef="U_USD">3852000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
