<?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_ada95488-72f4-4518-9088-e2fdd750666d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_ada95488-72f4-4518-9088-e2fdd750666d"
      id="F_71c99aba-04ba-466d-999e-7306133ca451">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_ada95488-72f4-4518-9088-e2fdd750666d"
      id="F_3654da4b-10e9-42ee-a8e1-aa2eee9a633b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_ada95488-72f4-4518-9088-e2fdd750666d"
      id="F_b327aebb-04ad-4df9-a2d4-e630d9d6b989">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ada95488-72f4-4518-9088-e2fdd750666d"
      id="F_3eb2d8e6-08a7-45ed-bb93-75107a347307">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ada95488-72f4-4518-9088-e2fdd750666d"
      id="F_cb8017fd-5927-4491-bdf6-ca857374941f">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_ada95488-72f4-4518-9088-e2fdd750666d"
      id="F_7d51b137-9a5b-4cb5-88ed-b6d70b9d941f">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_ada95488-72f4-4518-9088-e2fdd750666d"
      id="F_5f16a3e2-5f4c-420a-a33c-d0f8a94eae6e">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ada95488-72f4-4518-9088-e2fdd750666d"
      id="F_63b4a9fd-02fd-4eec-be7b-f576ad7021c4">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ada95488-72f4-4518-9088-e2fdd750666d"
      id="F_7a112897-9114-464d-bd60-bf6135877d41">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_ada95488-72f4-4518-9088-e2fdd750666d"
      id="F_7777c79f-da6c-45ee-a84c-0e3f00d33b25">&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;20,950,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_ada95488-72f4-4518-9088-e2fdd750666d"
      decimals="0"
      id="F_a293ae49-176d-4100-8b01-b8badd74b44c"
      unitRef="U_USD">20950000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
