<?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_e0d14201-847a-48f1-8a5c-ebbac93b9147">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_e0d14201-847a-48f1-8a5c-ebbac93b9147"
      id="F_cee522c9-2075-4ebf-9e18-ef9ce2584365">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e0d14201-847a-48f1-8a5c-ebbac93b9147"
      id="F_167fc97f-db80-4759-a2bd-3c05b3ab4565">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_e0d14201-847a-48f1-8a5c-ebbac93b9147"
      id="F_d28938d8-dfcf-489e-bcd2-cf329905f9bb">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_e0d14201-847a-48f1-8a5c-ebbac93b9147"
      id="F_02859396-7a37-4ed4-9f84-d89102e2e730">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_e0d14201-847a-48f1-8a5c-ebbac93b9147"
      id="F_475a4784-2deb-4033-9471-2beeaa1885b7">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e0d14201-847a-48f1-8a5c-ebbac93b9147"
      id="F_7ba39cc5-d434-4d90-a0d2-ae2bf5bd363d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e0d14201-847a-48f1-8a5c-ebbac93b9147"
      id="F_828d3a59-49bc-4eb4-bbb8-854b97c71e63">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_e0d14201-847a-48f1-8a5c-ebbac93b9147"
      id="F_3850e1d0-ce3c-475d-9ee7-eaa1e8c849d7">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_e0d14201-847a-48f1-8a5c-ebbac93b9147"
      id="F_58d4c10d-dd04-49f0-9b31-ac8c517990ce">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_e0d14201-847a-48f1-8a5c-ebbac93b9147"
      id="F_f6eb585b-fa38-4133-b518-a71d5b1ef062">&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;6,397,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_e0d14201-847a-48f1-8a5c-ebbac93b9147"
      decimals="-3"
      id="F_0d770eaf-4c96-45de-8b10-e7b04655a202"
      unitRef="U_USD">6397000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
