<?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_60454f1f-be3c-4358-990e-a1c775da5d8a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-09</startDate>
            <endDate>2026-10-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_60454f1f-be3c-4358-990e-a1c775da5d8a"
      id="F_fda71cbb-e1d5-4506-8d8a-5298eb314c55">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_60454f1f-be3c-4358-990e-a1c775da5d8a"
      id="F_ecff4333-8ba5-4fdd-98bf-85685e16895e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_60454f1f-be3c-4358-990e-a1c775da5d8a"
      id="F_15817e0d-5142-47bc-8d24-39bedca07cfa">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_60454f1f-be3c-4358-990e-a1c775da5d8a"
      id="F_0e6e26e5-d5e3-4799-8a4a-a2b03188059a">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_60454f1f-be3c-4358-990e-a1c775da5d8a"
      id="F_5ae53083-a3fb-43e0-953c-359803530402">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_60454f1f-be3c-4358-990e-a1c775da5d8a"
      id="F_43247135-ca9a-4d35-b1f3-d7f5b551933c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_60454f1f-be3c-4358-990e-a1c775da5d8a"
      id="F_6ca22cd3-2729-445b-8d4d-a7b62fedd0a2">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_60454f1f-be3c-4358-990e-a1c775da5d8a"
      id="F_b14cfae8-abf9-49f0-b395-3b770df87f2e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_60454f1f-be3c-4358-990e-a1c775da5d8a"
      id="F_4ac03698-529a-41c1-b3d2-a26cf5bfaa39">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_60454f1f-be3c-4358-990e-a1c775da5d8a"
      id="F_af8e43bc-ccd7-41dc-8450-4b2efd043aa6">&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;2,691,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_60454f1f-be3c-4358-990e-a1c775da5d8a"
      decimals="-3"
      id="F_9fe882d7-fce9-4936-bbc0-eb75356cce11"
      unitRef="U_USD">2691000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
