<?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_bd93e6b1-504b-4467-aed3-ce6e89ac222f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_bd93e6b1-504b-4467-aed3-ce6e89ac222f"
      id="F_a127fa07-4a35-43ef-a492-f37523d4e444">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_bd93e6b1-504b-4467-aed3-ce6e89ac222f"
      id="F_b71e58b5-b96c-42fd-a1b5-a97cebd88de8">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_bd93e6b1-504b-4467-aed3-ce6e89ac222f"
      id="F_f4d84423-586b-4cce-b0de-67397f7be1fd">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_bd93e6b1-504b-4467-aed3-ce6e89ac222f"
      id="F_d05e9c28-3341-4346-aa62-4ef3d129c979">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_bd93e6b1-504b-4467-aed3-ce6e89ac222f"
      id="F_79728fa4-0d64-46c4-9379-9d5311ff24aa">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_bd93e6b1-504b-4467-aed3-ce6e89ac222f"
      id="F_0c9c47d0-b0fa-4c09-856d-9475e75cefda">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_bd93e6b1-504b-4467-aed3-ce6e89ac222f"
      id="F_562a95b9-b9d5-4f7c-ab05-4d1eadd21312">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bd93e6b1-504b-4467-aed3-ce6e89ac222f"
      id="F_3a7ef71c-401d-49dc-997a-0c1c48e601af">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bd93e6b1-504b-4467-aed3-ce6e89ac222f"
      id="F_b1419ccd-2ac1-4f16-a26b-18eee0494019">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_bd93e6b1-504b-4467-aed3-ce6e89ac222f"
      id="F_3d271f32-5549-43f2-87b7-b33defa02115">&lt;p style="tab-size:26.66px;font-size:12pt;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,329,700&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_bd93e6b1-504b-4467-aed3-ce6e89ac222f"
      decimals="0"
      id="F_3e8662e3-f14d-4538-ab13-6978a4d7c196"
      unitRef="U_USD">1329700</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
