<?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_b8e1be46-0862-47e7-b066-cf753b5f807b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-16</startDate>
            <endDate>2026-09-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_b8e1be46-0862-47e7-b066-cf753b5f807b"
      id="F_b00fbe1f-1844-456a-aa17-75f78fe5a6ed">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b8e1be46-0862-47e7-b066-cf753b5f807b"
      id="F_a5adb31d-8327-4ca2-8a59-b66321317748">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_b8e1be46-0862-47e7-b066-cf753b5f807b"
      id="F_3a4f0e0a-a638-4d21-90cb-847128f35656">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_b8e1be46-0862-47e7-b066-cf753b5f807b"
      id="F_48287b40-90cc-4d46-98c4-e9a2a1a2da9f">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_b8e1be46-0862-47e7-b066-cf753b5f807b"
      id="F_2888a884-a3fb-4d18-861e-4154419f1c17">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_b8e1be46-0862-47e7-b066-cf753b5f807b"
      id="F_80843390-e52b-44ac-b11e-ca56a541c36a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b8e1be46-0862-47e7-b066-cf753b5f807b"
      id="F_553f1098-57b6-4148-ba3d-884fa80fcd3b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b8e1be46-0862-47e7-b066-cf753b5f807b"
      id="F_2298c555-4b81-4482-9eba-16e93174820e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_b8e1be46-0862-47e7-b066-cf753b5f807b"
      id="F_a3904526-1cab-43a7-a249-38b3168edb9b">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b8e1be46-0862-47e7-b066-cf753b5f807b"
      id="F_184aca94-b767-4b4d-94a8-5c1d5a61753c">&lt;p style="tab-size:26.66px;font-size:12pt;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,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_b8e1be46-0862-47e7-b066-cf753b5f807b"
      decimals="-6"
      id="F_2369bbbd-30dc-4559-86db-36a886d4d008"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
