<?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_c682bd72-d19f-4cad-a671-495565269c8a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_c682bd72-d19f-4cad-a671-495565269c8a"
      id="F_87283c9f-cbd1-492d-98ea-671be899f802">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_c682bd72-d19f-4cad-a671-495565269c8a"
      id="F_8422c99d-a319-4cb0-aba2-bfe97296cc33">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_c682bd72-d19f-4cad-a671-495565269c8a"
      id="F_30ad431f-4dc6-4542-9fb8-113f84c7b258">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_c682bd72-d19f-4cad-a671-495565269c8a"
      id="F_7d836b40-9a34-40e1-82bd-a1ba85cc7d1b">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c682bd72-d19f-4cad-a671-495565269c8a"
      id="F_ca7a2542-34d8-4a76-9201-d79670e73de5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_c682bd72-d19f-4cad-a671-495565269c8a"
      id="F_187f3e7a-c511-47e7-9396-650e88770d0d">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_c682bd72-d19f-4cad-a671-495565269c8a"
      id="F_ff3ea446-71a5-414c-ac5d-4eaada47d3ae">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_c682bd72-d19f-4cad-a671-495565269c8a"
      id="F_06d12454-4a92-4b28-ac35-bb6028901d79">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c682bd72-d19f-4cad-a671-495565269c8a"
      id="F_743ecad3-0d72-4415-87e4-b496e2fcdac2">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c682bd72-d19f-4cad-a671-495565269c8a"
      id="F_0120ac57-494c-4b0b-8253-f42a9022b887">&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;5,424,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_c682bd72-d19f-4cad-a671-495565269c8a"
      decimals="0"
      id="F_ffc8665f-6f9b-4fb3-8446-c99424de759a"
      unitRef="U_USD">5424000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
