<?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_b365bd08-2bb3-4b2b-9178-80cd7722be2c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-24</startDate>
            <endDate>2026-08-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_b365bd08-2bb3-4b2b-9178-80cd7722be2c"
      id="F_745e51f0-0883-4d83-9cdd-fa257fe7e94e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_b365bd08-2bb3-4b2b-9178-80cd7722be2c"
      id="F_244332e0-6cad-4230-8ad3-13a34c4db664">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_b365bd08-2bb3-4b2b-9178-80cd7722be2c"
      id="F_a0d74c6b-140f-4a42-85e8-5a3e9281d089">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_b365bd08-2bb3-4b2b-9178-80cd7722be2c"
      id="F_fdd53d9f-ec3e-4d4c-8de9-2b2aec15898a">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b365bd08-2bb3-4b2b-9178-80cd7722be2c"
      id="F_94dae93d-febf-4093-8352-ef90d6353c39">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_b365bd08-2bb3-4b2b-9178-80cd7722be2c"
      id="F_9d705b9d-bef8-44ca-8982-05eb88eb59ab">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b365bd08-2bb3-4b2b-9178-80cd7722be2c"
      id="F_44614212-e0aa-4fab-8964-bb9cc2495f36">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b365bd08-2bb3-4b2b-9178-80cd7722be2c"
      id="F_d2565d42-1d0c-42a0-b611-5ce6ce6c7fa3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b365bd08-2bb3-4b2b-9178-80cd7722be2c"
      id="F_98479fd6-13a9-4ace-ad30-75335cb815dc">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_b365bd08-2bb3-4b2b-9178-80cd7722be2c"
      id="F_1ef28cfc-71a4-4e4c-82f1-d46b83c9be2e">&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;1,027,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_b365bd08-2bb3-4b2b-9178-80cd7722be2c"
      decimals="-3"
      id="F_0f431dd0-ae2a-4e1a-b128-261eae7a2f26"
      unitRef="U_USD">1027000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
