<?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_c42ce787-b846-463d-958d-cee5360ec48a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-25</startDate>
            <endDate>2026-02-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_c42ce787-b846-463d-958d-cee5360ec48a"
      id="F_4bbca737-a73e-4000-be6a-900c6aa522f0">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c42ce787-b846-463d-958d-cee5360ec48a"
      id="F_9819079d-84b2-4f51-a09c-a0c3cdb3d1bf">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_c42ce787-b846-463d-958d-cee5360ec48a"
      id="F_40088b24-8440-473c-a83c-51f281105c4c">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_c42ce787-b846-463d-958d-cee5360ec48a"
      id="F_f1701a2b-8614-45c1-8498-7f9418ea4de1">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c42ce787-b846-463d-958d-cee5360ec48a"
      id="F_c3b03e06-c9de-4ea7-b8bb-a631b49638db">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c42ce787-b846-463d-958d-cee5360ec48a"
      id="F_cdc1b690-bd55-4838-bd22-ae00e7c853d1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_c42ce787-b846-463d-958d-cee5360ec48a"
      id="F_f184f063-d6cd-4484-a004-36f2937186fa">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c42ce787-b846-463d-958d-cee5360ec48a"
      id="F_65f85624-b15f-4a47-8215-426e33945218">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c42ce787-b846-463d-958d-cee5360ec48a"
      id="F_a6b8d85f-0dde-47c9-a667-4d3529bbd6ab">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_c42ce787-b846-463d-958d-cee5360ec48a"
      id="F_a4a5554a-60e5-4efb-b5e7-f9df446ca023">&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;15,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_c42ce787-b846-463d-958d-cee5360ec48a"
      decimals="0"
      id="F_a63714a3-c36e-4457-974c-3fa960f680fa"
      unitRef="U_USD">15000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
