<?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_a9b3454d-1fb2-4e83-a624-ef7c71c8142a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_a9b3454d-1fb2-4e83-a624-ef7c71c8142a"
      id="F_2537f624-3a31-45d0-adac-8097e05a7bf4">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_a9b3454d-1fb2-4e83-a624-ef7c71c8142a"
      id="F_7243ad3d-905e-49af-a37a-f23a32cad67d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a9b3454d-1fb2-4e83-a624-ef7c71c8142a"
      id="F_c7bcf921-4ef9-42ef-95e2-582358718120">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_a9b3454d-1fb2-4e83-a624-ef7c71c8142a"
      id="F_719c47e9-83e5-4c5d-b2a3-dfc6206be6a5">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a9b3454d-1fb2-4e83-a624-ef7c71c8142a"
      id="F_1f2eb863-2beb-4336-aa5b-d3663f8663d5">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a9b3454d-1fb2-4e83-a624-ef7c71c8142a"
      id="F_74d4a412-b4ff-41d8-93e7-8e12290cf6cb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_a9b3454d-1fb2-4e83-a624-ef7c71c8142a"
      id="F_f64c489d-1793-4e59-84d9-c830c9c3fc72">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a9b3454d-1fb2-4e83-a624-ef7c71c8142a"
      id="F_8fa6d96e-8009-4983-8b77-7c76bc82336a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a9b3454d-1fb2-4e83-a624-ef7c71c8142a"
      id="F_6fb057f0-8c24-4a3c-9cde-74c221aa2d41">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_a9b3454d-1fb2-4e83-a624-ef7c71c8142a"
      id="F_a85ef901-4bd1-4b5a-b3af-384b54080472">&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;6,987,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_a9b3454d-1fb2-4e83-a624-ef7c71c8142a"
      decimals="-3"
      id="F_1ad91cc5-acf8-450a-9880-6db7a837dcdb"
      unitRef="U_USD">6987000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
