<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_8843f44b-45e7-4558-b78b-38ceeb6474ef">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-12</startDate>
            <endDate>2026-03-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_8843f44b-45e7-4558-b78b-38ceeb6474ef"
      id="F_cd34ead9-c39e-4c43-b8eb-814582dd51da">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_8843f44b-45e7-4558-b78b-38ceeb6474ef"
      id="F_3ed9aab6-b6bd-454c-95e7-28df4575059d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8843f44b-45e7-4558-b78b-38ceeb6474ef"
      id="F_ec4168ec-39d8-40bd-806d-28e177a8887e">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8843f44b-45e7-4558-b78b-38ceeb6474ef"
      id="F_7f7cc765-8214-401d-a021-fe3828eee659">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_8843f44b-45e7-4558-b78b-38ceeb6474ef"
      id="F_8d017c33-0669-4263-8b1e-4b1004367c5d">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8843f44b-45e7-4558-b78b-38ceeb6474ef"
      id="F_e8c40765-c3d7-41e8-aba1-08c006721f2e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_8843f44b-45e7-4558-b78b-38ceeb6474ef"
      id="F_a88bef10-e4df-4b2b-8ff3-742013f27912">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_8843f44b-45e7-4558-b78b-38ceeb6474ef"
      id="F_ac1dbd86-ae02-4291-bb33-add50b1bf1b0">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_8843f44b-45e7-4558-b78b-38ceeb6474ef"
      id="F_73165288-3c2d-4119-b852-06d10d725393">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8843f44b-45e7-4558-b78b-38ceeb6474ef"
      id="F_aa384e94-f763-4e0f-8453-2428cc14ac0b">&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,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_8843f44b-45e7-4558-b78b-38ceeb6474ef"
      decimals="0"
      id="F_bc0b4d4f-e8b6-49d7-8611-c200a95b8a10"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
