<?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_37bac1e4-3aca-4bcc-a4b4-5ad59f035a99">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-04</startDate>
            <endDate>2026-06-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_37bac1e4-3aca-4bcc-a4b4-5ad59f035a99"
      id="F_09590b6c-15b4-4046-8cea-3d8843e5831a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_37bac1e4-3aca-4bcc-a4b4-5ad59f035a99"
      id="F_7ab55247-b91f-4e4c-895e-2c9684f3b98d">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_37bac1e4-3aca-4bcc-a4b4-5ad59f035a99"
      id="F_b5384ef4-663d-4037-b919-f9c2f636bf05">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_37bac1e4-3aca-4bcc-a4b4-5ad59f035a99"
      id="F_690f9288-8b95-4ddb-abf2-997286df730b">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_37bac1e4-3aca-4bcc-a4b4-5ad59f035a99"
      id="F_00701cac-a40b-4fe4-beb3-c13b3ad9ad89">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_37bac1e4-3aca-4bcc-a4b4-5ad59f035a99"
      id="F_e9091daf-23ea-4550-ad4b-5fee46d4815e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_37bac1e4-3aca-4bcc-a4b4-5ad59f035a99"
      id="F_90cb2a91-7044-48af-b6d1-acb0eca82b9a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_37bac1e4-3aca-4bcc-a4b4-5ad59f035a99"
      id="F_99e3d16b-47a9-4aef-9ed6-c395ee49d0b0">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_37bac1e4-3aca-4bcc-a4b4-5ad59f035a99"
      id="F_be49de1b-eb3e-434f-beb1-ced17c5de3ce">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_37bac1e4-3aca-4bcc-a4b4-5ad59f035a99"
      id="F_87d2258a-8b83-427a-97a1-a9d24656fb96">&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;2,448,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_37bac1e4-3aca-4bcc-a4b4-5ad59f035a99"
      decimals="-3"
      id="F_5e59e248-2b5b-4bde-8460-5d166f745507"
      unitRef="U_USD">2448000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
