<?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_7a06d5e2-7abe-49e4-89cb-0edb332025d3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-04</startDate>
            <endDate>2026-03-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_7a06d5e2-7abe-49e4-89cb-0edb332025d3"
      id="F_c54f7e49-83c6-4d5c-97df-a7a2d9b43beb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_7a06d5e2-7abe-49e4-89cb-0edb332025d3"
      id="F_593d288f-a928-4802-9b66-06e2e88aeb75">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_7a06d5e2-7abe-49e4-89cb-0edb332025d3"
      id="F_71ae336b-ae00-4e08-ba1e-366da882a0c4">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7a06d5e2-7abe-49e4-89cb-0edb332025d3"
      id="F_81fdbe46-467f-4f84-ae4a-95220edc4a93">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_7a06d5e2-7abe-49e4-89cb-0edb332025d3"
      id="F_bb83e92f-b73e-46e8-a746-ccc4113fc76d">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_7a06d5e2-7abe-49e4-89cb-0edb332025d3"
      id="F_b2795030-e646-4788-8b28-730ff5c1aac8">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7a06d5e2-7abe-49e4-89cb-0edb332025d3"
      id="F_f8f94177-2a5b-4abf-89c2-fe771a4ac194">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_7a06d5e2-7abe-49e4-89cb-0edb332025d3"
      id="F_8e5d697c-461e-4f17-a450-e155baf20d45">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_7a06d5e2-7abe-49e4-89cb-0edb332025d3"
      id="F_970a9407-825a-44f9-b771-b01dfdff2079">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7a06d5e2-7abe-49e4-89cb-0edb332025d3"
      id="F_635249cd-3973-48df-aa4c-13019071966e">&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;1,261,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_7a06d5e2-7abe-49e4-89cb-0edb332025d3"
      decimals="0"
      id="F_e0c7b949-c7a3-41ac-bfc1-1bd9cef05783"
      unitRef="U_USD">1261000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
