<?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_5daf5aaa-76d6-4524-8994-84edc6cd411d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-15</startDate>
            <endDate>2026-06-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_5daf5aaa-76d6-4524-8994-84edc6cd411d"
      id="F_9b5c4868-f742-4395-88f7-58229828e3f3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_5daf5aaa-76d6-4524-8994-84edc6cd411d"
      id="F_b1ec6c7e-2cd6-4876-89bc-0923349dbcbe">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_5daf5aaa-76d6-4524-8994-84edc6cd411d"
      id="F_98e3d28e-3014-48ab-928e-88af053adae4">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_5daf5aaa-76d6-4524-8994-84edc6cd411d"
      id="F_28c07fe5-e01a-4b7b-837a-14c770a16528">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5daf5aaa-76d6-4524-8994-84edc6cd411d"
      id="F_8ecc017b-16e0-423e-9304-bae3f3545942">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_5daf5aaa-76d6-4524-8994-84edc6cd411d"
      id="F_8e28a574-0bad-4925-9279-03cc6bb75810">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_5daf5aaa-76d6-4524-8994-84edc6cd411d"
      id="F_b6b7efed-945b-430f-aeab-1a4676dcd23f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_5daf5aaa-76d6-4524-8994-84edc6cd411d"
      id="F_16bccec7-d1cf-4e83-81e3-55b388ca2ad6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_5daf5aaa-76d6-4524-8994-84edc6cd411d"
      id="F_b89a5d70-77e4-4b10-9e6c-36f09543ef4c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5daf5aaa-76d6-4524-8994-84edc6cd411d"
      id="F_86aa7d7b-9860-4f1d-adea-1af6a3d6ab40">&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_5daf5aaa-76d6-4524-8994-84edc6cd411d"
      decimals="-6"
      id="F_5ce7289e-5081-4101-9228-f60fff156836"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
