<?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_031265dd-5ea6-408d-966b-8c5fb2989261">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-24</startDate>
            <endDate>2026-06-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_031265dd-5ea6-408d-966b-8c5fb2989261"
      id="F_b44ee6e2-05e3-4f9b-b0fb-d922cb22ca5a">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_031265dd-5ea6-408d-966b-8c5fb2989261"
      id="F_f0500e00-143e-4729-8fe3-5f32bc34af2b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_031265dd-5ea6-408d-966b-8c5fb2989261"
      id="F_32640bcc-b628-4086-9645-1315fe0b5b87">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_031265dd-5ea6-408d-966b-8c5fb2989261"
      id="F_91e03150-19fb-45d6-b2a8-a397a53608bc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_031265dd-5ea6-408d-966b-8c5fb2989261"
      id="F_0fb3f055-4b25-488e-b116-8b8ef37bacc1">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_031265dd-5ea6-408d-966b-8c5fb2989261"
      id="F_88c5e81e-db96-4c78-be03-dfa1ebef166f">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_031265dd-5ea6-408d-966b-8c5fb2989261"
      id="F_218a3e8f-2bd5-4b4a-80c6-0d5a09cec7ba">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_031265dd-5ea6-408d-966b-8c5fb2989261"
      id="F_32a9d436-db53-4cd3-9c9f-994acce6caa1">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_031265dd-5ea6-408d-966b-8c5fb2989261"
      id="F_69784a9a-b20b-443f-81bd-9a6985f2a8f7">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_031265dd-5ea6-408d-966b-8c5fb2989261"
      id="F_d31ba63b-d975-47d5-ad71-c798217c02cc">&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;555,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_031265dd-5ea6-408d-966b-8c5fb2989261"
      decimals="-3"
      id="F_381e37d7-6ea0-4e11-87c0-b2e6887acfc2"
      unitRef="U_USD">555000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
