<?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_daf9d124-24a1-4543-89b3-69cd23594745">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-11</startDate>
            <endDate>2026-06-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_daf9d124-24a1-4543-89b3-69cd23594745"
      id="F_31d88513-75b1-4f6f-a1b1-9cbce127a853">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_daf9d124-24a1-4543-89b3-69cd23594745"
      id="F_6918d053-41f4-4c6b-9a62-33de0a1496b4">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_daf9d124-24a1-4543-89b3-69cd23594745"
      id="F_b4e22f4d-bde9-44df-8b5a-0ff9a7449a79">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_daf9d124-24a1-4543-89b3-69cd23594745"
      id="F_0d1291af-aae0-425a-8e5d-a2646de64eb2">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_daf9d124-24a1-4543-89b3-69cd23594745"
      id="F_4e13f960-9617-41ed-afe8-966f0d7a50d5">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_daf9d124-24a1-4543-89b3-69cd23594745"
      id="F_91a7c77d-7278-40ee-8627-dde47c03553f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_daf9d124-24a1-4543-89b3-69cd23594745"
      id="F_ba4b90ff-8841-415e-9a24-c320360f5e11">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_daf9d124-24a1-4543-89b3-69cd23594745"
      id="F_97a53560-f745-4c68-a6fe-ecac2b24f336">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_daf9d124-24a1-4543-89b3-69cd23594745"
      id="F_ccf20745-eff8-4659-b256-b15be6f81f05">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_daf9d124-24a1-4543-89b3-69cd23594745"
      id="F_fbd3e7d5-a431-4831-8040-7fea8fcfcb83">&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;959,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_daf9d124-24a1-4543-89b3-69cd23594745"
      decimals="-3"
      id="F_a9cc617a-7ba4-47a7-a5ce-7c9db7406285"
      unitRef="U_USD">959000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
