<?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_b6e85380-3731-49f2-837c-56a7fa0bd350">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_b6e85380-3731-49f2-837c-56a7fa0bd350"
      id="F_aaa36b47-2dba-4c83-9043-a58265eecbe3">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_b6e85380-3731-49f2-837c-56a7fa0bd350"
      id="F_e43d9d3f-a458-4c90-bd78-bb5f7e6d2309">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b6e85380-3731-49f2-837c-56a7fa0bd350"
      id="F_7e8409ba-c13e-407a-9fb4-08d53ff7c6e2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b6e85380-3731-49f2-837c-56a7fa0bd350"
      id="F_6cd3d7e5-6b38-4928-85ab-19c59b8221fa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_b6e85380-3731-49f2-837c-56a7fa0bd350"
      id="F_74d066b9-93e9-43d0-8340-98370237251d">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b6e85380-3731-49f2-837c-56a7fa0bd350"
      id="F_930a3578-b67d-4813-bddf-476acf8d3c82">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b6e85380-3731-49f2-837c-56a7fa0bd350"
      id="F_5d94b8b0-6811-4925-b3f2-d4bde2ceff95">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_b6e85380-3731-49f2-837c-56a7fa0bd350"
      id="F_a4960a0b-260f-4d30-9c95-b93df3f1a1e6">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_b6e85380-3731-49f2-837c-56a7fa0bd350"
      id="F_de657bce-5bd8-4cd0-af12-fe6c2a238a7d">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b6e85380-3731-49f2-837c-56a7fa0bd350"
      id="F_f316d09d-9f20-4d4c-b4d2-be11577b62b9">&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;23,000,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_b6e85380-3731-49f2-837c-56a7fa0bd350"
      decimals="-6"
      id="F_2b3a0a44-7976-45ce-bd57-ac18f666718f"
      unitRef="U_USD">23000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
