<?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_468633ba-7a69-441d-8154-c81a2b99df07">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_468633ba-7a69-441d-8154-c81a2b99df07"
      id="F_9c1d79e6-9fde-4f4c-955b-a5827ddeb2c8">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_468633ba-7a69-441d-8154-c81a2b99df07"
      id="F_c01b65bd-4440-4c74-b994-65f235c8f142">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_468633ba-7a69-441d-8154-c81a2b99df07"
      id="F_15ec193e-4037-490b-8077-6d9a88d2a2ff">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_468633ba-7a69-441d-8154-c81a2b99df07"
      id="F_12e907f5-806a-4ede-9e4b-8140b8b87152">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_468633ba-7a69-441d-8154-c81a2b99df07"
      id="F_ffef7868-0f10-479c-a231-b4976100f4e1">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_468633ba-7a69-441d-8154-c81a2b99df07"
      id="F_1a068ff8-5671-4d03-b261-95da7a02f3a4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_468633ba-7a69-441d-8154-c81a2b99df07"
      id="F_7363615e-dc2f-4af2-bf03-cb283ec42891">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_468633ba-7a69-441d-8154-c81a2b99df07"
      id="F_2b2f8b58-6292-4304-be6d-28ad421275f8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_468633ba-7a69-441d-8154-c81a2b99df07"
      id="F_29d27ae9-ca7e-4673-ac5e-383e304e18e3">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_468633ba-7a69-441d-8154-c81a2b99df07"
      id="F_e0ee033a-82ed-46ad-87bf-7fee857f5a3e">&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;740,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_468633ba-7a69-441d-8154-c81a2b99df07"
      decimals="-3"
      id="F_43934fa7-d567-4a5e-9e0a-8e05154961e0"
      unitRef="U_USD">740000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
